package com.mp.ipm2020.mbg.model;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author adidasshe
 * @since 2020-05-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Control对象", description="")
public class Control implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "操作员")
    private String operator;

    @ApiModelProperty(value = "开关1操作：0-1")
    private Integer switchSet1;

    @ApiModelProperty(value = "开关2操作：0-1")
    private Integer switchSet2;

    @ApiModelProperty(value = "开关3操作：0-1")
    private Integer switchSet3;

    @ApiModelProperty(value = "开关1电流阈值")
    private Double leakageCurrentSet1;

    @ApiModelProperty(value = "开关2电流阈值")
    private Double leakageCurrentSet2;

    @ApiModelProperty(value = "开关3电流阈值")
    private Double leakageCurrentSet3;

    @ApiModelProperty(value = "功率因数")
    private Double powerFactorSet1;

    @ApiModelProperty(value = "开关延迟")
    private Double switchDelaySet1;

    @ApiModelProperty(value = "CT变化值")
    private Double ctVarValue;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "设备ID")
    private Long deviceId;



}
